import request from "../request.js"

// 生成订单
function addPreOrder(data){
	return request({
		url:"/lejuClient/order/addPreOrder",
		data:data,
		method:"POST"
	})
}
// 生成订单详细信息
function getPreOrderById(orderId,data){
	return request({
		url:`/lejuClient/order/getPreOrderById/${orderId}`,
		data:data
	})
}
// 提交确认订单
function addConfirmOrder(data){
	return request({
		url:"/lejuClient/order/addConfirmOrder",
		data:data,
		method:"POST"
	})
}
// 立即支付
function payConfirm(data){
	return request({
		url:"/lejuClient/order/payConfirm",
		data:data,
		method:"POST"
	})
}
export {
	addPreOrder,
	getPreOrderById,
	addConfirmOrder,
	payConfirm
}